//package com.xrtn.controller;
//
//import com.xrtn.ApiVersion;
//import com.xrtn.bean.SysUserInfo;
//import com.xrtn.service.UploadFileService;
//import com.xrtn.utils.HttpUtils;
//import com.xrtn.utils.ResponseData;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.ResponseBody;
//import org.springframework.web.multipart.MultipartFile;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * Created by tu_pei on 2018/4/9.
// */
//@Api
//@Controller
//@RequestMapping("/{version}/excel")
//public class ExcelController {
//
//    @Autowired
//    private UploadFileService uploadFileService;
//    /**
//     * @Title: importUserExcel
//     * @Description: 导入会员信息
//     * @param @return
//     * @return ResponseData
//     * @throws
//     */
//    @ApiOperation(value = "导入会员信息",notes="导入会员信息")
//    @RequestMapping(value = "/importUserExcel",method = RequestMethod.POST)
//    @ApiVersion(1)
//    @ResponseBody
//    public ResponseData importUserExcel(MultipartFile excelFile, HttpServletRequest request,
//                                        HttpServletResponse response){
//        ResponseData data = new ResponseData();
//
//        SysUserInfo userInfo = (SysUserInfo) request.getSession().getAttribute(HttpUtils.CURRENT_USER_4_POJO);
//        Map<String, Object> params = new HashMap<String, Object>() {{
//
//        }};
//        uploadFileService.importUserExcel(excelFile, request, response, params);
//        // 返回数据
//
//        return data;
//    }
//
//    /**
//     * @Title: importPatientExcel
//     * @Description: 导入患者信息
//     * @param @return
//     * @return ResponseData
//     * @throws
//     */
//    @ApiOperation(value = "导入患者信息",notes="导入患者信息")
//    @RequestMapping(value = "/importPatientExcel",method = RequestMethod.POST)
//    @ApiVersion(1)
//    @ResponseBody
//    public ResponseData importPatientExcel(MultipartFile excelFile, HttpServletRequest request,
//                                        HttpServletResponse response){
//        ResponseData data = new ResponseData();
//
//        Map<String, Object> params = new HashMap<String, Object>() {{
//
//        }};
//        uploadFileService.importUserExcel(excelFile, request, response, params);
//        // 返回数据
//
//        return data;
//    }
//}
